﻿using AutoMapper;
using BCDto.TMS.User.UserAddressBook;
using BCEntity.TMS.User.UserAddressBook;

namespace BCService.MapperProfiles.TMS.User
{
    public class UserAddressBookProfile : Profile
    {
        public UserAddressBookProfile()
        {
            CreateMap<UserAddressBookEntity, UserAddressBookDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<UserAddressBookDto, UserAddressBookEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<UserAddressBookViewEntity, UserAddressBookViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
